<!doctype html>
<html>
<head>
    <meta charset="gbk">
    <title>首页_{{$name}}个人博客</title>
    <meta name="keywords" content="{{$name}}"/>
    <meta name="description" content="{{$name}}个人博客"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="{{URL::asset('css/base.css')}}" rel="stylesheet">
    <link href="{{URL::asset('css/index.css')}}" rel="stylesheet">
    <link href="{{URL::asset('css/m.css')}}" rel="stylesheet">
    <script src="{{URL::asset('js/jquery.min.js')}}" type="text/javascript"></script>
    <script src="{{URL::asset('js/jquery.easyfader.min.js')}}"></script>
    <script src="{{URL::asset('js/scrollReveal.js')}}"></script>
    <script src="{{URL::asset('js/common.js')}}"></script>
    <!--[if lt IE 9]>
    <script src="{{URL::asset('js/modernizr.js')}}"></script>
    <![endif]-->
</head>
<body>
<header>
    <!--menu begin-->
    <div class="menu">
        <nav class="nav" id="topnav">
            <h1 class="logo"><a href="{{action('MainController@index')}}">{{$name}}博客</a></h1>
            @foreach($list as $k=>$v)
                <li><a href="{{isset($v->url) && !empty($v->url)?action($v->url):''}}">{{$v->name}}</a>
                    @if(!$v->children->isEmpty())
                        <ul class="sub-nav">
                            @foreach($v->children as $ke=>$va)
                                <li>
                                    <a href="{{isset($va->url) && !empty($va->url)?action($va->url):''}}">{{$va->name}}</a>
                                </li>
                            @endforeach
                        </ul>
                    @endif
                </li>
        @endforeach
            <!--search begin-->
            <div id="search_bar" class="search_bar">
                <form id="searchform" action="[!--news.url--]e/search/index.php" method="post" name="searchform">
                    <input class="input" placeholder="想搜点什么呢..." type="text" name="keyboard" id="keyboard">
                    <input type="hidden" name="show" value="title"/>
                    <input type="hidden" name="tempid" value="1"/>
                    <input type="hidden" name="tbname" value="news">
                    <input type="hidden" name="Submit" value="搜索"/>
                    <span class="search_ico"></span>
                </form>
            </div>
            <!--search end-->

        </nav>

    </div>
    <!--menu end-->
    <!--mnav begin-->
    <div id="mnav">
        <h2><a href="{{action('MainController@index')}}" class="mlogo">叶宗调博客</a><span class="navicon"></span></h2>
        <dl class="list_dl">
            @foreach($list as $k=>$v)
                @if(!$v->children->isEmpty())
                    <dt class="list_dt"><a href="#">{{$v->name}}</a></dt>
                    <dd class="list_dd">
                        <ul>
                            @foreach($v->children as $ke=>$va)
                                <li>
                                    <a href="{{isset($va->url) && !empty($va->url)?action($va->url):''}}">{{$va->name}}</a>
                                </li>
                            @endforeach
                        </ul>
                    </dd>
                @else
                    <dt class="list_dt"><a
                                href="{{isset($v->url) && !empty($v->url)?action($v->url):''}}">{{$v->name}}</a></dt>

                @endif
            @endforeach
        </dl>
    </div>
    <!--mnav end-->
</header>